cmake_minimum_required(VERSION 3.16)
project(CPlusPlus_Demo CXX)

set(CMAKE_CXX_STANDARD 14)

include_directories("../c_plus_plus_primer_plus_exercise/include")
file(GLOB files "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp")
foreach (file ${files})
    get_filename_component(name ${file} NAME)
    add_executable(${name} ${file} ../c_plus_plus_primer_plus_exercise/include/01_14_5_exce.cpp)
endforeach ()